Total Complexity | 18 |
Dependencies | 0 |
Dependents | 1 |
Total lines | 166 |
Lines of code | 88 |
Logical lines of code | 30 |
Comment lines | 59 |
Methods | 10 |
Properties | 0 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
register_rest_fields() | 54 | 3 | 23 | |
get_post_categories() | 60 | 3 | 14 | |
get_post_comments_number() | 70 | 3 | 6 | |
register_rest_routes() | 61 | 2 | 14 | |
get_post_featured_media() | 62 | 2 | 12 | |
__construct() | 82 | 1 | 3 | |
init_hooks() | 79 | 1 | 3 | |
on_rest_api_init() | 78 | 1 | 4 | |
get_post_author() | 70 | 1 | 6 | |
get_post_excerpt() | 79 | 1 | 3 |